const request = require('request')

let fun = function(url){
    return new Promise((res,rej)=>{
        request({url},(err,data)=>{
            if(err){
                rej(err)
            }
            res(data)
        })
    })
}
module.exports = fun